#
# build file for libgist unit tests
#

#
# This file is part of libgist.
#
# libgist is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# libgist is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with libgist; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
#

#
# REVISION HISTORY
#
# $HeadURL: http://libgist.googlecode.com/svn/branches/lazebnik_dev/test/CMakeLists.txt $
# $Id: CMakeLists.txt 149 2012-02-16 20:03:25Z libgist@gmail.com $
#

# Min cmake version
cmake_minimum_required(VERSION 2.8)

# Project name
project(gist_tests)

# Library checks
find_package(Boost COMPONENTS thread program_options
             unit_test_framework REQUIRED)

# Libraries to link in
set(gist_tests_LIBS ${Boost_LIBRARIES})
#link_directories(${gist_BINARY_DIR})

# Compiler flags
add_definitions(-Wall -Wextra)
include_directories(${gist_SOURCE_DIR})

# Testing the multithreaded k-means implementation
add_executable(kmeans_tests kmeans_tests.cc)
target_link_libraries(kmeans_tests ${gist_tests_LIBS})
add_test(kmeans_tests kmeans_tests)

add_executable(kmeans kmeans.cc)
target_link_libraries(kmeans ${gist_tests_LIBS})
